package com.love.marriage.common.enums;

/**
 *description:  结果枚举
 *author:       majf
 *createDate:   2022/7/4 17:36
 *version:      1.0.0
 */
public enum ResultEnum implements BaseEnum {

    SUCCESS("200", "成功"),
    PARAM_ERROR("4000001", "参数错误"),

    /**
     * 公共
     */
    REPEAT_COMMIT("4000010", "请勿重复提交表单!"),

    USER_USERNAME_OR_PASSWORD_EMPTY("4000012", "用户名或者密码为空!"),

    USER_PHONE_OR_CODE_EMPTY("4000013", "手机号或者验证码为空!"),

    USER_PHONE_OR_CODE_ERROR("4000014", "验证码错误!"),


    USER_NO_AUTH_EMPTY("4000015", "用户未授权!"),

    USER_PHONE_EXISTS("4000016", "手机号已注册!"),

    USER_LOGIN_ERROR_MORE("4000019", "密码输错次数过多，已被锁定30分钟!"),


    SYSTEM_ERROR("5000001", "系统错误"),

    USER_NO_LOGIN("6000003", "请先登录"),

    USER_GET_INFO_ERROR("6000009", "查询用户信息失败!"),

    USER_NOT_EXIST("6000010", "用户不存在!"),

    USER_NOT_PHONE("6000014", "用户未配置手机号!"),

    WECHAT_NOT_EXIST("6000011", "未绑定微信!"),

    USER_NO_ENOUGH_BALANCE("6000012", "用户余额不足"),

    USER_NO_ENOUGH_WITH_BALANCE("6000014", "用户余额不足或余额已申请提现"),

    USER_NOT_PROFILE_COMPLETE("6000013", "请完善个人资料!"),

    IMAGE_NO_FOUNT("7000001", "图片未找到"),

    IM_CREATE_USER_FAIL("8000001", "im创建用户失败"),

    DATING_OVER("9000001", "约会已结束"),

    DATING_REGISTRY_OVER("9000004", "约会已结束报名"),

    DATING_NO_JOIN("9000005", "请先报名约会"),

    DATING_ALREADY_SURE("9000006", "约会已确认"),

    DATING_NOT_EXIST("9000002", "约会不存在"),

    USER_ALREADY_JOIN_DATING("9000003", "您已经报名该约会"),

    EVENT_ALREADY_REGISTERED("1000003", "您已报名该活动"),

    EVENT_MAX_REGISTERED("1000004", "活动报名人数已满"),

    MEMBER_TYPE_NO_EXISTS("1100001", "会员类型不存在"),

    ORDER_NO_EXISTS("1100003", "订单不存在"),

    ORDER_PAID("1100004", "订单已支付"),


    VIRTUAL_NUMBER_NOT_EXIST("1200001", "虚拟号码不足，请稍后"),

    UNAUTHORIZED("403", "没有权限")
    ;

    ResultEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    private String code;

    private String value;

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return value;
    }
}
